package com.hmall.model;

import lombok.Data;

import java.util.Date;
import javax.persistence.*;

@Data
@Table(name = "mall_shipping")
public class MallShipping {
    @Id
    private Integer id;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 收货姓名
     */
    @Column(name = "receiver_name")
    private String receiverName;

    /**
     * 收货固定电话
     */
    @Column(name = "receiver_phone")
    private String receiverPhone;

    /**
     * 收货移动电话
     */
    @Column(name = "receiver_mobile")
    private String receiverMobile;

    /**
     * 省份
     */
    @Column(name = "receiver_province")
    private String receiverProvince;

    /**
     * 城市
     */
    @Column(name = "receiver_city")
    private String receiverCity;

    /**
     * 区/县
     */
    @Column(name = "receiver_district")
    private String receiverDistrict;

    /**
     * 详细地址
     */
    @Column(name = "receiver_address")
    private String receiverAddress;

    /**
     * 邮编
     */
    @Column(name = "receiver_zip")
    private String receiverZip;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "MemberToken")
    private String membertoken;

    /**
     * 是否被选中，被选中：1，未被选中：0
     */
    @Column(name = "Selected")
    private Integer selected;

    /**
     * 0表示不是默认值，1表示是默认值
     */
    @Column(name = "default_check")
    private Integer defaultCheck;

    /**
     * 0表示可用 1表示不可用
     */
    @Column(name = "del_flag")
    private Integer delFlag;

    public MallShipping(Integer id, Integer userId, String receiverName, String receiverPhone, String receiverMobile, String receiverProvince, String receiverCity, String receiverDistrict, String receiverAddress, String receiverZip, Date createTime, Date updateTime, String membertoken, Integer selected, Integer defaultCheck, Integer delFlag) {
        this.id = id;
        this.userId = userId;
        this.receiverName = receiverName;
        this.receiverPhone = receiverPhone;
        this.receiverMobile = receiverMobile;
        this.receiverProvince = receiverProvince;
        this.receiverCity = receiverCity;
        this.receiverDistrict = receiverDistrict;
        this.receiverAddress = receiverAddress;
        this.receiverZip = receiverZip;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.membertoken = membertoken;
        this.selected = selected;
        this.defaultCheck = defaultCheck;
        this.delFlag = delFlag;
    }

    public MallShipping() {
    }
}